package com.example.springcloud.client;

import com.example.springcloud.pojo.Product;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: trtan
 * @date: 2021-06-14 12:11
 **/
@Component
public class ProductClientFeignHystrix implements ProductClientFeign {
    @Override
    public List<Product> listProducts() {
        List<Product> allProducts = new ArrayList<>();
        allProducts.add(new Product(0, "数据微服务：产品微服务不可用", 0));
        return allProducts;
    }
}
